package com.example.social.api

import com.example.social.model.CommentModel
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface CommentApiService {
    @GET("comments/post")
    fun getCommentByTid(@Query("tid") tid:String):Call<BaseResponse<List<CommentModel>>>
    @POST("comments/add")
    fun addComment(@Body comment: CommentList):Call<BaseResponse<String>>

    @POST("comments/getAllThreadCommentByUserId")
    fun getAllThreadCommentByUserId(@Query("userId") userId:String):Call<BaseResponse<List<CommentModel>>>
}